<%@ page import="java.util.Date" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="header.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
当前时间：
<%
    java.util.Date now=new java.util.Date();
    out.print(now.toLocaleString());

%>
<br/>
使用jsp表达式进行输出当前时间
<%=new Date().toLocaleString()%>
<%--JSP的声明--%>
<%!int a=6;%>
<%int num=66;%>
</body>
</html>